import request from '@/utils/request';

// 获取年级和学习组合列表
export function getGrades() {
    return request({
        url: '/common/getGradeTerm',
        method: 'post'
    });
  }
  
  // 获取教材版本列表
export function getTextbooks() {
    return request({
        url: '/common/getVersions',
        method: 'post'
    });
}

// 获取年级列表
export function getGradesList() {
    return request({
        url: '/common/getGrade',
        method: 'post'
    });
}

// 获取年级列表v2
export function getGradesV2List(data) {
    return request({
        url: '/common/getBooksV2',
        method: 'post',
        data
    });
}


// 获取知识点
export function getChapters(data) {
    return request({
        url: '/common/getChapters',
        method: 'post',
        data
    });
}


// 保存智测试卷
export function saveSmartPaper(data) {
    return request({
        url: '/question/saveSmartPaper',
        method: 'post',
        data
    });
}

// 获取试卷
export function getPaper(data) {
    return request({
        url: '/question/getPaper',
        method: 'post',
        data
    });
}

// 获取分享链接
export function getShareLink(data) {
    return request({
        url: '/question/sharePaper',
        method: 'post',
        data
    });
}

// 获取分享链接
export function savePaperAnswer(data) {
    return request({
        url: '/question/savePaperAnswer',
        method: 'post',
        data
    });
}

export function getPaperResult(data) {
    return request({
        url: '/question/paperAnalysis',
        method: 'post',
        data
    });
}